package com.think.controller.User;

import com.think.service.User.RoleService;
import com.think.service.exp.ResponseEntityFactory;
import com.think.service.model.ResultModel;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/role")
public class RoleController {
    @Resource
    private RoleService roleService;

    @RequestMapping("/add")
    public ResponseEntity<ResultModel> add() {
        roleService.add("1");
        return ResponseEntityFactory.success(new ResultModel());
    }
}
